package com.zg.message.service.impl;


import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.zg.common.core.dao.IDao;
import com.zg.common.core.dao.message.MsgTemplateDao;
import com.zg.common.core.dao.message.entity.MsgTemplate;
import com.zg.common.core.service.PageBaseService;
import com.zg.message.service.MsgTemplateService;
import com.zg.message.sys.MsgTypeEnum;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>Description: </p>
 *
 * @author zhanfeng.liang
 * @since 2025/5/22 10:47
 */

@Slf4j
@Service
public class MsgTemplateServiceImpl extends PageBaseService<MsgTemplate,MsgTemplateDao> implements MsgTemplateService {

//    @Autowired
//    @Qualifier("msgTemplateDao")
//    @Override
//    protected void setDao(IDao<MsgTemplate> dao) {
//        this.dao = dao;
//    }


    public List<MsgTemplate> listByType(String msgTypeEnum){
        MsgTemplate msgTemplate = new MsgTemplate();
        msgTemplate.setType(msgTypeEnum);
        return list(msgTemplate);
    }
}
